﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.MultiUserAdminPageBase" %>
<ali:Get ID="Link" Object="Link" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="link_edit" data-title="编辑链接" data-id="<%=Link[InnerID]%>">
	<div class="path1"><span>您的位置：</span><a href="list.aspx" target="ali-navtab">链接列表</a> → <b class="<%=ContentLang%>Font"><%=Link[Name]%></b></div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th>类别：</th>
					<td>
						<select name="CategoryID" class="<%=ContentLang%>Font" data-ali-widget="combo" data-tree="true" data-root="0">
							<option value="" data-item="" data-parent="0">未指定</option>
							<ali:Tree Object="LinkCategory" Validate="True">
								<ali:Record>
									<%If Convert.ToString(ID) == Link[CategoryID]%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>" selected><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>" data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>"><%=Name%></option>
									<%EndIf%>
									<%=ChildRecords%>
								</ali:Record>
							</ali:Tree>
						</select>
					</td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=Link[Name]%>" size="60" maxlength="255" class="ali-input ali-input-required <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>网址：</th>
					<td><input type="text" name="Url" value="<%=Link[Url]%>" size="60" maxlength="255" class="ali-input"></td>
				</tr>
				<tr>
					<th>标志：</th>
					<td>
						<input type="text" name="Logo" value="<%=Link[Logo]%>" size="55" class="ali-input">
						<a class="ali-button ali-uploader">浏览...</a>
						<input type="hidden" name="LogoAllowedType" value="gif|jpg|jpeg|png|bmp">
					</td>
				</tr>
				<tr>
					<th>描述：</th>
					<td><textarea name="Description" rows="4" cols="60" class="ali-input"><%=HttpUtility.HtmlEncode(Link[Description].ToString())%></textarea></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>